<?php
/**
 * User: lsx
 * Date: 2017/6/1
 * Time: 14:30
 * Progress:0%
 */

namespace app\index\controller;

use logic\wechat\index\LNotify;
use think\Controller;


class Notify extends Controller
{
    private $logic;

    public function __construct()
    {

        parent::__construct();

        $this->logic = new LNotify();
    }
    public function wechat_notify()
    {

        $xml = $GLOBALS['HTTP_RAW_POST_DATA'];
        $param = array(
            'xml' => $xml
        );

//        $param = array(
//            'xml' => ""
//        );
        $this->logic->logic_wechat_pay_back($param);
    }

}